package com.liuwei.msmall.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableFeignClients(basePackages = "com.liuwei.msmall.product.feign")
@SpringBootApplication(scanBasePackages = {"com.liuwei.msmall.common.exception","com.liuwei.msmall.product"})
@EnableDiscoveryClient
public class MsmallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsmallProductApplication.class, args);
//        ConfigurableApplicationContext applicationContext  = SpringApplication.run(MsmallProductApplication.class, args);
//        String name = applicationContext.getEnvironment().getProperty("aa.name");
//        String age = applicationContext.getEnvironment().getProperty("aa.age");
//        System.out.println("获取默认组的配置信息");
//        System.out.println("name:"+name);
//        System.out.println("age:"+age);
//
//        String ext_name = applicationContext.getEnvironment().getProperty("bb.name");
//        String ext_age = applicationContext.getEnvironment().getProperty("bb.age");
//        System.out.println("获取非默认组的配置信息");
//        System.out.println("name:"+ext_name);
//        System.out.println("age:"+ext_age);


    }

}
